inverse of 3x3 matrix using adjoint method